
<div class="col-sm-12">
	<div class="box margin-middle max-width">
		<!-- BOX-BODY -->
		<div class="box-body">
			{{#bs-form formLayout=formLayout model=planModel invalid=(action "invalid")}}
			<div class="row">
				<div class="col-xs-12">
					<p class="user-add-btn">
						{{#if detailEdit}}
						{{#ui/mix-button class="user-btn edit-btn" iconClass="fa fa-save"  text='保存' clickAction="detailSaveClick" detailSaveClick="detailSaveClick"}}
						{{/ui/mix-button}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='取消'  clickAction="detailCancel" detailCancel="detailCancel" }}
			        {{/ui/mix-button}}
						{{else}}
							{{#ui/mix-button class="user-btn times-btn" iconClass="fa fa-undo"  text='返回'  clickAction="detailCancel" detailCancel="detailCancel"}}
			        {{/ui/mix-button}}
							{{#ui/mix-button class="user-btn trash-btn" iconClass="fa fa-trash-o"  text='删除'  clickAction="delById" delById="delById"}}
			        {{/ui/mix-button}}
						{{/if}}
					</p>
				</div>
				<!-- 列表详细介绍 -->
				<div class="col-xs-12 nopadding-left">
					<div class="col-xs-12 nopadding-horizontal mt20">
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">客户姓名：</span>
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="customer"  property="customer" }}
										{{#power-select class="input-group-content" placeholder='客户姓名(必填)' options=customerList  selected=customer searchField="sortName"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectCustomer" ) as |customer|}}
											{{customer.name}}
										{{/power-select}}
										{{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{planInfo.plan.customer.name}}</div>
								{{/if}}

							</div>

						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">执行人：</span>
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="exeStaff"  property="exeStaff" }}
										{{#power-select class="input-group-content" placeholder='执行人(必填)' options=staffList  selected=staff searchField="sortName"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectStaff" ) as |staff|}}
											{{staff.name}}
										{{/power-select}}
									{{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{planInfo.exeStaff.name}}</div>
								{{/if}}
							</div>

						</div>

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">执行时间：</span>
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="exeStartTime"  property="exeStartTime" }}
										{{ui/addon/bs-datetimepicker date=planModel.planStartTime placeholder="执行时间(必填)"
											locale="zh-CN" iconClasses="fa fa-calendar"
											value=planModel.planStartTime show="dpShowAction" change="changePlanStartDateAction" }}
									{{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{planInfo.planStartTimeString}}</div>
								{{/if}}
							</div>
						</div>

						{{#if detailEdit}}
						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">类&nbsp;&nbsp;&nbsp;&nbsp;别：</span>
								{{callbusi/dict-selector class="inline-block" groupCode=constants.countType curDict=countType
									showName='类别' dictSelect="countTypeSelect" preselected=false}}
							</div>
						</div>
						{{/if}}

						<div class="col-xs-12 col-sm-6">
							<div class="form-input-group">
							<span class="input-group-addon">项目名称：</span>
								{{#if detailEdit}}
									{{#bs-form-element class="inline-block form-input-group" controlType="service"  property="service" }}
										{{#power-select class="input-group-content" placeholder='项目名称(必填)' options=serviceList  selected=service searchField="sortName"
										noMatchesMessage="没有相关内容"	allowClear=false	onchange=(action "selectService" ) as |service|}}
											{{service.name}}
										{{/power-select}}
									{{/bs-form-element}}
								{{else}}
									<div class="input-group-content">{{planInfo.serviceName}}</div>
								{{/if}}
							</div>
						</div>

						<div class="col-xs-12 col-sm-12">
							<div class="form-input-group">
								<span class="input-group-addon">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</span>
								{{#if detailEdit}}
									{{textarea type="text" class="full-width inline-block form-input-group label-normal form-control" value=planInfo.remark placeholder='备注'}}
								{{else}}
									<div class="input-group-content">{{planInfo.remarkStr}}</div>
								{{/if}}
							</div>

						</div>

					</div>
				</div>
				<!-- 列表详细介绍 -->
			</div>

			{{/bs-form}}
		</div>
		<!-- /BOX-BODY -->
	</div>
</div>


{{#if showpopInvitePassModal}}
	{{#bs-modal body=false footer=false header=false}}
		{{#bs-modal-header}}
			<h3 class="modal-title">删除提示</h3>
		{{/bs-modal-header}}
		{{#bs-modal-body}}
			<h4 class="modal-title">是否删除该条记录？</h4>
		{{/bs-modal-body}}

		{{#bs-modal-footer as |footer|}}
			{{#bs-button action=(action "cancelPassSubmit" planInfo) type="primary" disabled=prepaidDisabled}}确定{{/bs-button}}
			{{#bs-button action=(action "invitation") type="default"}}取消{{/bs-button}}
		{{/bs-modal-footer}}
	{{/bs-modal}}
{{/if}}
